home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Demos / Bowers Development / AppMaker 2.1.sit / AppMaker 2.1 / Examples / Procedural / Gadgets / TabbedPanel.c < prev    next >
MacBinary  |  1997-07-01  |  3.9 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Jul 1 14:05:48 1997, modified Tue Jul 1 14:05:48 1997, creator 'CWIE', type ASCII, 3417 bytes "TabbedPanel.c" , at 0xdd9 286 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 54 61 62 62 65 64 | 50 61 6e 65 6c 2e 63 00 |..Tabbed|Panel.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0d 59 00 | 00 01 1e af de f7 7c af |......Y.|......|.|
|00000060| de f7 7c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..|.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9c 2d 00 00 |........|.....-..|
|00000080| 2f 2a 20 54 61 62 62 65 | 64 50 61 6e 65 6c 2e 63 |/* Tabbe|dPanel.c|
|00000090| 20 2a 2f 0d 2f 2a 20 43 | 72 65 61 74 65 64 20 36 | */./* C|reated 6|
|000000a0| 2f 31 30 2f 39 37 20 31 | 32 3a 32 34 20 50 4d 20 |/10/97 1|2:24 PM |
|000000b0| 62 79 20 41 70 70 4d 61 | 6b 65 72 20 2a 2f 0d 0d |by AppMa|ker */..|
|000000c0| 23 69 6e 63 6c 75 64 65 | 20 3c 54 79 70 65 73 2e |#include| <Types.|
|000000d0| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 51 75 69 |h>.#incl|ude <Qui|
|000000e0| 63 6b 64 72 61 77 2e 68 | 3e 0d 23 69 6e 63 6c 75 |ckdraw.h|>.#inclu|
|000000f0| 64 65 20 3c 43 6f 6e 74 | 72 6f 6c 73 2e 68 3e 0d |de <Cont|rols.h>.|
|00000100| 23 69 6e 63 6c 75 64 65 | 20 3c 44 69 61 6c 6f 67 |#include| <Dialog|
|00000110| 73 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 45 |s.h>.#in|clude <E|
|00000120| 76 65 6e 74 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |vents.h>|.#includ|
|00000130| 65 20 3c 4c 69 73 74 73 | 2e 68 3e 0d 23 69 6e 63 |e <Lists|.h>.#inc|
|00000140| 6c 75 64 65 20 3c 4d 65 | 6e 75 73 2e 68 3e 0d 23 |lude <Me|nus.h>.#|
|00000150| 69 6e 63 6c 75 64 65 20 | 3c 52 65 73 6f 75 72 63 |include |<Resourc|
|00000160| 65 73 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |es.h>.#i|nclude <|
|00000170| 54 65 78 74 45 64 69 74 | 2e 68 3e 0d 23 69 6e 63 |TextEdit|.h>.#inc|
|00000180| 6c 75 64 65 20 3c 54 6f | 6f 6c 55 74 69 6c 73 2e |lude <To|olUtils.|
|00000190| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 22 52 65 73 |h>.#incl|ude "Res|
|000001a0| 6f 75 72 63 65 44 65 66 | 73 2e 68 22 0d 23 69 6e |ourceDef|s.h".#in|
|000001b0| 63 6c 75 64 65 20 22 47 | 6c 6f 62 61 6c 73 2e 68 |clude "G|lobals.h|
|000001c0| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 4d 69 73 63 |".#inclu|de "Misc|
|000001d0| 65 6c 6c 61 6e 79 2e 68 | 22 0d 23 69 6e 63 6c 75 |ellany.h|".#inclu|
|000001e0| 64 65 20 22 53 63 72 6f | 6c 6c 69 6e 67 2e 68 22 |de "Scro|lling.h"|
|000001f0| 0d 23 69 6e 63 6c 75 64 | 65 20 22 57 69 6e 64 6f |.#includ|e "Windo|
|00000200| 77 41 69 64 73 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |wAids.h"|.#includ|
|00000210| 65 20 22 47 61 64 67 65 | 74 73 44 61 74 61 2e 68 |e "Gadge|tsData.h|
|00000220| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 54 61 62 62 |".#inclu|de "Tabb|
|00000230| 65 64 50 61 6e 65 6c 2e | 68 22 0d 0d 0d 23 64 65 |edPanel.|h"...#de|
|00000240| 66 69 6e 65 20 54 61 62 | 50 61 6e 65 6c 50 61 6e |fine Tab|PanelPan|
|00000250| 65 6c 09 09 31 0d 23 64 | 65 66 69 6e 65 20 44 6f |el..1.#d|efine Do|
|00000260| 6f 6d 47 6c 6f 72 79 4c | 61 62 65 6c 09 09 32 0d |omGloryL|abel..2.|
|00000270| 23 64 65 66 69 6e 65 20 | 48 6f 74 43 6f 6c 64 4c |#define |HotColdL|
|00000280| 61 62 65 6c 09 09 33 0d | 23 64 65 66 69 6e 65 20 |abel..3.|#define |
|00000290| 42 6c 75 65 59 65 6c 6c | 6f 77 4c 61 62 65 6c 09 |BlueYell|owLabel.|
|000002a0| 09 34 0d 0d 0d 2f 2a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.4.../*-|--------|
|000002b0| 2d 2a 2f 0d 76 6f 69 64 | 20 4f 70 65 6e 54 61 62 |-*/.void| OpenTab|
|000002c0| 62 65 64 50 61 6e 65 6c | 09 28 46 53 53 70 65 63 |bedPanel|.(FSSpec|
|000002d0| 2a 09 66 69 6c 65 53 70 | 65 63 2c 0d 09 09 09 09 |*.fileSp|ec,.....|
|000002e0| 09 09 20 73 68 6f 72 74 | 09 09 66 52 65 66 4e 75 |.. short|..fRefNu|
|000002f0| 6d 29 0d 7b 0d 09 57 69 | 6e 64 6f 77 50 74 72 09 |m).{..Wi|ndowPtr.|
|00000300| 09 6e 65 77 57 69 6e 64 | 6f 77 3b 0d 09 52 65 63 |.newWind|ow;..Rec|
|00000310| 74 09 09 09 62 6f 75 6e | 64 73 3b 0d 0d 09 6e 65 |t...boun|ds;...ne|
|00000320| 77 57 69 6e 64 6f 77 20 | 3d 20 47 65 74 57 69 6e |wWindow |= GetWin|
|00000330| 64 6f 77 20 28 57 49 4e | 44 5f 54 61 62 62 65 64 |dow (WIN|D_Tabbed|
|00000340| 50 61 6e 65 6c 29 3b 0d | 09 69 66 20 28 66 69 6c |Panel);.|.if (fil|
|00000350| 65 53 70 65 63 2d 3e 6e | 61 6d 65 20 5b 30 5d 20 |eSpec->n|ame [0] |
|00000360| 21 3d 20 30 29 20 7b 0d | 09 09 53 65 74 57 54 69 |!= 0) {.|..SetWTi|
|00000370| 74 6c 65 20 28 6e 65 77 | 57 69 6e 64 6f 77 2c 20 |tle (new|Window, |
|00000380| 66 69 6c 65 53 70 65 63 | 2d 3e 6e 61 6d 65 29 3b |fileSpec|->name);|
|00000390| 0d 09 7d 0d 09 53 65 74 | 50 6f 72 74 20 28 6e 65 |..}..Set|Port (ne|
|000003a0| 77 57 69 6e 64 6f 77 29 | 3b 0d 09 53 65 74 4e 65 |wWindow)|;..SetNe|
|000003b0| 77 49 6e 66 6f 20 28 6e | 65 77 57 69 6e 64 6f 77 |wInfo (n|ewWindow|
|000003c0| 29 3b 0d 09 63 75 72 2d | 3e 76 53 63 72 6f 6c 6c |);..cur-|>vScroll|
|000003d0| 20 3d 20 6e 69 6c 3b 0d | 09 63 75 72 2d 3e 68 53 | = nil;.|.cur->hS|
|000003e0| 63 72 6f 6c 6c 20 3d 20 | 6e 69 6c 3b 0d 09 63 75 |croll = |nil;..cu|
|000003f0| 72 2d 3e 66 69 6c 65 4e | 75 6d 09 3d 20 66 52 65 |r->fileN|um.= fRe|
|00000400| 66 4e 75 6d 3b 0d 09 63 | 75 72 2d 3e 64 69 72 74 |fNum;..c|ur->dirt|
|00000410| 79 09 09 3d 20 66 61 6c | 73 65 3b 0d 09 63 75 72 |y..= fal|se;..cur|
|00000420| 2d 3e 66 69 6c 65 6e 61 | 6d 65 09 3d 20 4e 65 77 |->filena|me.= New|
|00000430| 53 74 72 69 6e 67 20 28 | 66 69 6c 65 53 70 65 63 |String (|fileSpec|
|00000440| 2d 3e 6e 61 6d 65 29 3b | 0d 09 63 75 72 2d 3e 77 |->name);|..cur->w|
|00000450| 69 6e 64 6f 77 4b 69 6e | 64 20 3d 20 57 54 61 62 |indowKin|d = WTab|
|00000460| 62 65 64 50 61 6e 65 6c | 3b 0d 09 28 28 57 69 6e |bedPanel|;..((Win|
|00000470| 64 6f 77 50 65 65 6b 29 | 20 63 75 72 57 69 6e 64 |dowPeek)| curWind|
|00000480| 6f 77 29 2d 3e 77 69 6e | 64 6f 77 4b 69 6e 64 20 |ow)->win|dowKind |
|00000490| 3d 20 75 73 65 72 4b 69 | 6e 64 20 2b 20 57 54 61 |= userKi|nd + WTa|
|000004a0| 62 62 65 64 50 61 6e 65 | 6c 3b 0d 09 63 75 72 2d |bbedPane|l;..cur-|
|000004b0| 3e 77 69 74 6c 48 61 6e | 64 6c 65 20 3d 20 47 65 |>witlHan|dle = Ge|
|000004c0| 74 52 65 73 6f 75 72 63 | 65 20 28 27 57 69 74 6c |tResourc|e ('Witl|
|000004d0| 27 2c 20 57 49 4e 44 5f | 54 61 62 62 65 64 50 61 |', WIND_|TabbedPa|
|000004e0| 6e 65 6c 29 3b 0d 09 63 | 75 72 2d 3e 77 69 63 74 |nel);..c|ur->wict|
|000004f0| 48 61 6e 64 6c 65 20 3d | 20 47 65 74 52 65 73 6f |Handle =| GetReso|
|00000500| 75 72 63 65 20 28 27 57 | 69 63 74 27 2c 20 57 49 |urce ('W|ict', WI|
|00000510| 4e 44 5f 54 61 62 62 65 | 64 50 61 6e 65 6c 29 3b |ND_Tabbe|dPanel);|
|00000520| 0d 0d 09 63 75 72 2d 3e | 54 61 62 50 61 6e 65 6c |...cur->|TabPanel|
|00000530| 48 61 6e 64 6c 65 20 3d | 20 47 65 74 4e 65 77 43 |Handle =| GetNewC|
|00000540| 6f 6e 74 72 6f 6c 20 28 | 43 4e 54 4c 5f 54 61 62 |ontrol (|CNTL_Tab|
|00000550| 50 61 6e 65 6c 2c 20 6e | 65 77 57 69 6e 64 6f 77 |Panel, n|ewWindow|
|00000560| 29 3b 0d 09 63 75 72 2d | 3e 54 61 62 50 61 6e 65 |);..cur-|>TabPane|
|00000570| 6c 56 61 6c 75 65 20 3d | 20 31 3b 0d 0d 09 63 75 |lValue =| 1;...cu|
|00000580| 72 2d 3e 74 65 78 74 20 | 3d 20 6e 69 6c 3b 0d 09 |r->text |= nil;..|
|00000590| 53 68 6f 77 57 69 6e 64 | 6f 77 20 28 6e 65 77 57 |ShowWind|ow (newW|
|000005a0| 69 6e 64 6f 77 29 3b 0d | 7d 20 2f 2a 4f 70 65 6e |indow);.|} /*Open|
|000005b0| 54 61 62 62 65 64 50 61 | 6e 65 6c 2a 2f 0d 0d 2f |TabbedPa|nel*/../|
|000005c0| 2a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2a 2f 0d 76 6f |*-------|---*/.vo|
|000005d0| 69 64 20 43 6c 6f 73 65 | 54 61 62 62 65 64 50 61 |id Close|TabbedPa|
|000005e0| 6e 65 6c 09 28 76 6f 69 | 64 29 0d 7b 0d 0d 09 44 |nel.(voi|d).{...D|
|000005f0| 69 73 70 6f 73 65 48 61 | 6e 64 6c 65 20 28 28 48 |isposeHa|ndle ((H|
|00000600| 61 6e 64 6c 65 29 20 63 | 75 72 2d 3e 66 69 6c 65 |andle) c|ur->file|
|00000610| 6e 61 6d 65 29 3b 0d 09 | 44 69 73 63 61 72 64 49 |name);..|DiscardI|
|00000620| 6e 66 6f 20 28 63 75 72 | 57 69 6e 64 6f 77 29 3b |nfo (cur|Window);|
|00000630| 0d 7d 20 2f 2a 43 6c 6f | 73 65 54 61 62 62 65 64 |.} /*Clo|seTabbed|
|00000640| 50 61 6e 65 6c 2a 2f 0d | 0d 2f 2a 2d 2d 2d 2d 2d |Panel*/.|./*-----|
|00000650| 2d 2d 2d 2d 2d 2a 2f 0d | 76 6f 69 64 20 43 6f 6e |-----*/.|void Con|
|00000660| 74 72 6f 6c 54 61 62 62 | 65 64 50 61 6e 65 6c 20 |trolTabb|edPanel |
|00000670| 20 28 43 6f 6e 74 72 6f | 6c 48 61 6e 64 6c 65 09 | (Contro|lHandle.|
|00000680| 09 77 68 69 63 68 43 6f | 6e 74 72 6f 6c 2c 0d 09 |.whichCo|ntrol,..|
|00000690| 09 09 09 09 09 20 73 68 | 6f 72 74 09 09 09 09 77 |..... sh|ort....w|
|000006a0| 68 69 63 68 50 61 72 74 | 2c 0d 09 09 09 09 09 09 |hichPart|,.......|
|000006b0| 20 50 6f 69 6e 74 09 09 | 09 09 77 68 65 72 65 29 | Point..|..where)|
|000006c0| 0d 7b 0d 09 52 65 63 74 | 09 09 09 62 6f 75 6e 64 |.{..Rect|...bound|
|000006d0| 73 3b 0d 0d 09 69 66 20 | 28 77 68 69 63 68 43 6f |s;...if |(whichCo|
|000006e0| 6e 74 72 6f 6c 20 3d 3d | 20 63 75 72 2d 3e 54 61 |ntrol ==| cur->Ta|
|000006f0| 62 50 61 6e 65 6c 48 61 | 6e 64 6c 65 29 20 7b 0d |bPanelHa|ndle) {.|
|00000700| 09 09 69 66 20 28 54 72 | 61 63 6b 43 6f 6e 74 72 |..if (Tr|ackContr|
|00000710| 6f 6c 20 28 63 75 72 2d | 3e 54 61 62 50 61 6e 65 |ol (cur-|>TabPane|
|00000720| 6c 48 61 6e 64 6c 65 2c | 20 77 68 65 72 65 2c 20 |lHandle,| where, |
|00000730| 4e 55 4c 4c 29 20 21 3d | 20 30 29 20 7b 0d 09 09 |NULL) !=| 0) {...|
|00000740| 09 63 75 72 2d 3e 54 61 | 62 50 61 6e 65 6c 56 61 |.cur->Ta|bPanelVa|
|00000750| 6c 75 65 20 3d 20 47 65 | 74 43 6f 6e 74 72 6f 6c |lue = Ge|tControl|
|00000760| 56 61 6c 75 65 20 28 63 | 75 72 2d 3e 54 61 62 50 |Value (c|ur->TabP|
|00000770| 61 6e 65 6c 48 61 6e 64 | 6c 65 29 3b 0d 09 09 09 |anelHand|le);....|
|00000780| 49 6e 76 61 6c 52 65 63 | 74 20 28 26 63 75 72 57 |InvalRec|t (&curW|
|00000790| 69 6e 64 6f 77 2d 3e 70 | 6f 72 74 52 65 63 74 29 |indow->p|ortRect)|
|000007a0| 3b 0d 09 09 7d 0d 09 7d | 0d 0d 7d 20 2f 2a 43 6f |;...}..}|..} /*Co|
|000007b0| 6e 74 72 6f 6c 54 61 62 | 62 65 64 50 61 6e 65 6c |ntrolTab|bedPanel|
|000007c0| 2a 2f 0d 0d 2f 2a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |*/../*--|--------|
|000007d0| 2a 2f 0d 76 6f 69 64 20 | 4d 6f 75 73 65 49 6e 54 |*/.void |MouseInT|
|000007e0| 61 62 62 65 64 50 61 6e | 65 6c 09 28 50 6f 69 6e |abbedPan|el.(Poin|
|000007f0| 74 09 09 77 68 65 72 65 | 2c 0d 09 09 09 09 09 09 |t..where|,.......|
|00000800| 20 73 68 6f 72 74 09 09 | 6d 6f 64 69 66 69 65 72 | short..|modifier|
|00000810| 73 29 0d 7b 0d 09 52 65 | 63 74 09 09 09 62 6f 75 |s).{..Re|ct...bou|
|00000820| 6e 64 73 3b 0d 0d 0d 7d | 20 2f 2a 4d 6f 75 73 65 |nds;...}| /*Mouse|
|00000830| 49 6e 54 61 62 62 65 64 | 50 61 6e 65 6c 2a 2f 0d |InTabbed|Panel*/.|
|00000840| 0d 2f 2a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2a 2f 0d |./*-----|-----*/.|
|00000850| 76 6f 69 64 20 54 79 70 | 65 49 6e 54 61 62 62 65 |void Typ|eInTabbe|
|00000860| 64 50 61 6e 65 6c 20 20 | 20 28 63 68 61 72 09 09 |dPanel | (char..|
|00000870| 63 68 29 0d 7b 0d 09 69 | 66 20 28 28 63 68 20 3d |ch).{..i|f ((ch =|
|00000880| 3d 20 63 68 61 72 45 6e | 74 65 72 29 0d 09 7c 7c |= charEn|ter)..|||
|00000890| 20 20 28 63 68 20 3d 3d | 20 63 68 61 72 52 65 74 | (ch ==| charRet|
|000008a0| 75 72 6e 29 29 20 7b 0d | 09 7d 20 65 6c 73 65 20 |urn)) {.|.} else |
|000008b0| 69 66 20 28 63 68 20 3d | 3d 20 63 68 61 72 45 73 |if (ch =|= charEs|
|000008c0| 63 29 20 7b 0d 09 7d 20 | 65 6c 73 65 20 69 66 20 |c) {..} |else if |
|000008d0| 28 63 68 20 3d 3d 20 63 | 68 61 72 54 61 62 29 20 |(ch == c|harTab) |
|000008e0| 7b 0d 09 09 2f 2a 20 74 | 61 62 20 61 6d 6f 6e 67 |{.../* t|ab among|
|000008f0| 20 65 64 69 74 20 66 69 | 65 6c 64 73 20 2a 2f 0d | edit fi|elds */.|
|00000900| 09 7d 20 65 6c 73 65 20 | 69 66 20 28 63 75 72 2d |.} else |if (cur-|
|00000910| 3e 74 65 78 74 20 3d 3d | 20 6e 69 6c 29 20 7b 0d |>text ==| nil) {.|
|00000920| 09 09 53 79 73 42 65 65 | 70 20 28 31 29 3b 0d 09 |..SysBee|p (1);..|
|00000930| 7d 20 65 6c 73 65 20 7b | 0d 09 09 54 45 4b 65 79 |} else {|...TEKey|
|00000940| 20 28 63 68 2c 20 63 75 | 72 2d 3e 74 65 78 74 29 | (ch, cu|r->text)|
|00000950| 3b 0d 09 09 63 75 72 2d | 3e 64 69 72 74 79 20 3d |;...cur-|>dirty =|
|00000960| 20 74 72 75 65 3b 0d 09 | 7d 0d 7d 20 2f 2a 54 79 | true;..|}.} /*Ty|
|00000970| 70 65 49 6e 54 61 62 62 | 65 64 50 61 6e 65 6c 2a |peInTabb|edPanel*|
|00000980| 2f 0d 0d 2f 2a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2a |/../*---|-------*|
|00000990| 2f 0d 76 6f 69 64 20 55 | 70 64 61 74 65 54 61 62 |/.void U|pdateTab|
|000009a0| 62 65 64 50 61 6e 65 6c | 20 28 76 6f 69 64 29 0d |bedPanel| (void).|
|000009b0| 7b 0d 09 52 65 63 74 09 | 09 09 62 6f 75 6e 64 73 |{..Rect.|..bounds|
|000009c0| 3b 0d 0d 09 53 65 74 57 | 46 6f 6e 74 20 28 54 61 |;...SetW|Font (Ta|
|000009d0| 62 50 61 6e 65 6c 50 61 | 6e 65 6c 29 3b 0d 09 44 |bPanelPa|nel);..D|
|000009e0| 72 61 77 31 43 6f 6e 74 | 72 6f 6c 20 28 63 75 72 |raw1Cont|rol (cur|
|000009f0| 2d 3e 54 61 62 50 61 6e | 65 6c 48 61 6e 64 6c 65 |->TabPan|elHandle|
|00000a00| 29 3b 0d 09 73 77 69 74 | 63 68 20 28 63 75 72 2d |);..swit|ch (cur-|
|00000a10| 3e 54 61 62 50 61 6e 65 | 6c 56 61 6c 75 65 29 20 |>TabPane|lValue) |
|00000a20| 7b 0d 09 09 63 61 73 65 | 20 31 3a 0d 0d 09 09 09 |{...case| 1:.....|
|00000a30| 53 65 74 57 46 6f 6e 74 | 20 28 44 6f 6f 6d 47 6c |SetWFont| (DoomGl|
|00000a40| 6f 72 79 4c 61 62 65 6c | 29 3b 0d 09 09 09 47 65 |oryLabel|);....Ge|
|00000a50| 74 57 52 65 63 74 20 28 | 44 6f 6f 6d 47 6c 6f 72 |tWRect (|DoomGlor|
|00000a60| 79 4c 61 62 65 6c 2c 20 | 26 62 6f 75 6e 64 73 29 |yLabel, |&bounds)|
|00000a70| 3b 0d 09 09 09 54 65 78 | 74 49 44 42 6f 78 20 28 |;....Tex|tIDBox (|
|00000a80| 54 45 58 54 5f 44 6f 6f | 6d 47 6c 6f 72 79 2c 20 |TEXT_Doo|mGlory, |
|00000a90| 62 6f 75 6e 64 73 29 3b | 0d 09 09 09 62 72 65 61 |bounds);|....brea|
|00000aa0| 6b 3b 0d 0d 09 09 63 61 | 73 65 20 32 3a 0d 0d 09 |k;....ca|se 2:...|
|00000ab0| 09 09 53 65 74 57 46 6f | 6e 74 20 28 48 6f 74 43 |..SetWFo|nt (HotC|
|00000ac0| 6f 6c 64 4c 61 62 65 6c | 29 3b 0d 09 09 09 47 65 |oldLabel|);....Ge|
|00000ad0| 74 57 52 65 63 74 20 28 | 48 6f 74 43 6f 6c 64 4c |tWRect (|HotColdL|
|00000ae0| 61 62 65 6c 2c 20 26 62 | 6f 75 6e 64 73 29 3b 0d |abel, &b|ounds);.|
|00000af0| 09 09 09 54 65 78 74 49 | 44 42 6f 78 20 28 54 45 |...TextI|DBox (TE|
|00000b00| 58 54 5f 48 6f 74 43 6f | 6c 64 2c 20 62 6f 75 6e |XT_HotCo|ld, boun|
|00000b10| 64 73 29 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 0d |ds);....|break;..|
|00000b20| 09 09 63 61 73 65 20 33 | 3a 0d 0d 09 09 09 53 65 |..case 3|:.....Se|
|00000b30| 74 57 46 6f 6e 74 20 28 | 42 6c 75 65 59 65 6c 6c |tWFont (|BlueYell|
|00000b40| 6f 77 4c 61 62 65 6c 29 | 3b 0d 09 09 09 47 65 74 |owLabel)|;....Get|
|00000b50| 57 52 65 63 74 20 28 42 | 6c 75 65 59 65 6c 6c 6f |WRect (B|lueYello|
|00000b60| 77 4c 61 62 65 6c 2c 20 | 26 62 6f 75 6e 64 73 29 |wLabel, |&bounds)|
|00000b70| 3b 0d 09 09 09 54 65 78 | 74 49 44 42 6f 78 20 28 |;....Tex|tIDBox (|
|00000b80| 54 45 58 54 5f 42 6c 75 | 65 59 65 6c 6c 6f 77 2c |TEXT_Blu|eYellow,|
|00000b90| 20 62 6f 75 6e 64 73 29 | 3b 0d 09 09 09 62 72 65 | bounds)|;....bre|
|00000ba0| 61 6b 3b 0d 0d 09 7d 20 | 2f 2f 20 73 77 69 74 63 |ak;...} |// switc|
|00000bb0| 68 0d 09 44 72 61 77 43 | 6c 69 70 70 65 64 47 72 |h..DrawC|lippedGr|
|00000bc0| 6f 77 20 28 2d 31 35 2c | 20 2d 31 35 29 3b 0d 7d |ow (-15,| -15);.}|
|00000bd0| 20 2f 2a 55 70 64 61 74 | 65 54 61 62 62 65 64 50 | /*Updat|eTabbedP|
|00000be0| 61 6e 65 6c 2a 2f 0d 0d | 2f 2a 2d 2d 2d 2d 2d 2d |anel*/..|/*------|
|00000bf0| 2d 2d 2d 2d 2a 2f 0d 76 | 6f 69 64 20 41 63 74 69 |----*/.v|oid Acti|
|00000c00| 76 61 74 65 54 61 62 62 | 65 64 50 61 6e 65 6c 09 |vateTabb|edPanel.|
|00000c10| 28 42 6f 6f 6c 65 61 6e | 09 61 63 74 69 76 61 74 |(Boolean|.activat|
|00000c20| 65 29 0d 7b 0d 0d 09 44 | 72 61 77 43 6c 69 70 70 |e).{...D|rawClipp|
|00000c30| 65 64 47 72 6f 77 20 28 | 2d 31 35 2c 20 2d 31 35 |edGrow (|-15, -15|
|00000c40| 29 3b 0d 7d 20 2f 2a 41 | 63 74 69 76 61 74 65 54 |);.} /*A|ctivateT|
|00000c50| 61 62 62 65 64 50 61 6e | 65 6c 2a 2f 0d 0d 2f 2a |abbedPan|el*/../*|
|00000c60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2a 2f 0d 76 6f 69 |--------|--*/.voi|
|00000c70| 64 20 52 65 73 69 7a 65 | 54 61 62 62 65 64 50 61 |d Resize|TabbedPa|
|00000c80| 6e 65 6c 09 28 76 6f 69 | 64 29 0d 7b 0d 09 2f 2a |nel.(voi|d).{../*|
|00000c90| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2d 73 70 65 | applica|tion-spe|
|00000ca0| 63 69 66 69 63 20 63 6f | 64 65 20 74 6f 20 72 65 |cific co|de to re|
|00000cb0| 73 69 7a 65 20 69 74 65 | 6d 73 20 69 6e 20 77 69 |size ite|ms in wi|
|00000cc0| 6e 64 6f 77 20 2a 2f 0d | 7d 20 2f 2a 52 65 73 69 |ndow */.|} /*Resi|
|00000cd0| 7a 65 54 61 62 62 65 64 | 50 61 6e 65 6c 2a 2f 0d |zeTabbed|Panel*/.|
|00000ce0| 0d 2f 2a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2a 2f 0d |./*-----|-----*/.|
|00000cf0| 70 61 73 63 61 6c 20 76 | 6f 69 64 20 53 63 72 6f |pascal v|oid Scro|
|00000d00| 6c 6c 54 61 62 62 65 64 | 50 61 6e 65 6c 09 28 73 |llTabbed|Panel.(s|
|00000d10| 68 6f 72 74 09 09 6e 65 | 77 56 61 6c 75 65 2c 0d |hort..ne|wValue,.|
|00000d20| 09 09 09 09 09 09 09 09 | 20 73 68 6f 72 74 09 09 |........| short..|
|00000d30| 6f 6c 64 56 61 6c 75 65 | 29 0d 7b 0d 09 2f 2a 20 |oldValue|).{../* |
|00000d40| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2d 73 70 65 63 |applicat|ion-spec|
|00000d50| 69 66 69 63 20 63 6f 64 | 65 20 74 6f 20 73 63 72 |ific cod|e to scr|
|00000d60| 6f 6c 6c 20 77 69 6e 64 | 6f 77 20 2a 2f 0d 09 69 |oll wind|ow */..i|
|00000d70| 66 20 28 67 57 68 69 63 | 68 53 63 72 6f 6c 6c 20 |f (gWhic|hScroll |
|00000d80| 3d 3d 20 63 75 72 2d 3e | 76 53 63 72 6f 6c 6c 29 |== cur->|vScroll)|
|00000d90| 20 7b 0d 09 7d 20 65 6c | 73 65 20 7b 09 2f 2f 20 | {..} el|se {.// |
|00000da0| 68 6f 72 69 7a 6f 6e 74 | 61 6c 0d 09 7d 0d 7d 20 |horizont|al..}.} |
|00000db0| 2f 2a 53 63 72 6f 6c 6c | 54 61 62 62 65 64 50 61 |/*Scroll|TabbedPa|
|00000dc0| 6e 65 6c 2a 2f 0d 0d 2f | 2a 20 54 61 62 62 65 64 |nel*/../|* Tabbed|
|00000dd0| 50 61 6e 65 6c 20 2a 2f | 0d 00 00 00 00 00 00 00 |Panel */|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000e10| 00 07 00 ff ec e3 01 ff | 00 09 01 00 ff ee e3 02 |........|........|
|00000e20| ff 00 00 09 01 00 ff ee | e3 00 ff ff 00 0a 02 00 |........|........|
|00000e30| 0d 54 61 62 62 65 64 50 | 61 6e 65 6c 2e 63 02 00 |.TabbedP|anel.c..|
|00000e40| 00 00 54 45 58 54 43 57 | 49 45 00 00 c8 b7 c0 36 |..TEXTCW|IE.....6|
|00000e50| 00 00 54 45 58 54 43 57 | 49 45 00 00 c8 b7 c0 36 |..TEXTCW|IE.....6|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 af c2 f8 1d 00 00 | 0d 59 00 00 01 1e 09 01 |........|.Y......|
|00000e80| 00 ff ee e3 02 ff 00 00 | 09 01 00 ff ee e3 00 ff |........|........|
|00000e90| ff 00 0a 02 00 00 ff f0 | e3 00 ff fe 00 0c 03 00 |........|........|
|00000ea0| 00 ff ff f2 e3 01 ff ff | fe 00 0c fe 00 01 ff ff |........|........|
|00000eb0| f4 e3 01 ff ff fd 00 0c | fd 00 01 ff ff f6 e3 01 |........|........|
|00000ec0| ff ff fc 00 0c fb 00 01 | ff ff fa e3 01 ff ff fa |........|........|
|00000ed0| 00 06 64 07 00 ff ec e3 | 01 ff 00 07 00 ff ec e3 |..d.....|........|
|00000ee0| 01 ff 00 09 01 00 ff ee | e3 02 ff 00 00 09 01 00 |........|........|
|00000ef0| ff ee e3 00 ff ff 00 0a | 02 00 00 ff f0 e3 00 ff |........|........|
|00000f00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+